package com.ziyun.pop.modules.logistics.vo;

import com.ziyun.pop.common.e.logistics.LogisticFinanceStatusEnum;
import com.ziyun.pop.common.utils.EnumUtil;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 物流配送表
 * 
 * @author guizhao
 * @date 2018-08-31 10:12:35
 */
@Getter
@Setter
public class ErpLogisticsVo implements Serializable {

	/**
	 * 物流ID
	 */
	private Long logiId;

	/**
	 * 订单ID
	 */
	private Long orderId;
	/**
	 * erp订单号
	 */
	private String orderNo;
	/**
	 * 发货类型:1.发票,2.样品,3.订单
	 */
	private Integer sendType;
	/**
	 * 物流类型:1.呼叫快递,2.添加物流,3.自提
	 */
	private Integer logiType;
	/**
	 * 物流ID
	 */
	private String logisticsId;
	/**
	 * 物流名称
	 */
	private String logisticsName;
	/**
	 * 物流单号
	 */
	private String logiNo;
	/**
	 * 物流费用
	 */
	private BigDecimal logiCost;
	/**
	 * 物流备注
	 */
	private String logiRemark;
	/**
	 * 支付时间
	 */
	private Date logiPaytime;
	/**
	 * 财务审核状态:0待审核,1待付款,2已付款,-1,待提交
	 */
	private Integer logisticFinanceStatus;
	/**
	 * 图文宝 付款状态
	 */
	private String twbFinanceStatusText;

	public String getTwbFinanceStatusText() {
		if (this.logisticFinanceStatus ==  LogisticFinanceStatusEnum.PAYED.toInt()){
			return "已付款";
		}else {
			return "未付款";
		}
	}

	/**
	 * 发货时间
	 */
	private Date sendTime;
	/**
	 * 发货时间
	 */
	private Date createTime;
	/**
	 * 商户ID
	 */
	private Integer thirdMerchantId;
	/**
	 * 商户名
	 */
	private String suppName;
	/**
	 *  付款备注
	 */
	private String logiPayRemark;
}
